/*
 * recording.wsdl search.wsdl replay.wsdl 
 * implemention
 *
 */
#include "../soapH.h"
#include "../onvif.h"

int get_recordservice_cap(struct soap *soap, struct trc__Capabilities * record)
{
	if(soap == NULL || record == NULL)
	{
		DBG("invalid params!\n");
		return -1;
	}

	record->DynamicRecordings = (enum xsd__boolean*)soap_malloc(soap, sizeof(enum xsd__boolean));
	record->DynamicTracks = (enum xsd__boolean*)soap_malloc(soap, sizeof(enum xsd__boolean));
	*record->DynamicRecordings = FALSE;
	*record->DynamicTracks = FALSE;

	record->__size = 0;
	record->__any = NULL;
	record->__anyAttribute = NULL;

	return 0;
}

int get_replayservice_cap(struct soap *soap, struct trp__Capabilities * replay)
{
	if(soap == NULL || replay == NULL)
	{

		DBG("invalid params!\n");
		return -1;
	}

	replay->__size = 0;
	replay->__any = NULL;
	replay->__anyAttribute = NULL;

	return 0;
}

int get_searchservice_cap(struct soap *soap, struct tse__Capabilities * search)
{
	if(soap == NULL || search == NULL)
	{
		DBG("invalid params!\n");
		return -1;
	}

	search->MetadataSearch = (enum xsd__boolean*)soap_malloc(soap, sizeof(enum xsd__boolean));
	*search->MetadataSearch = FALSE;

	search->__size = 0;
	search->__any = NULL;
	search->__anyAttribute = NULL;

	return 0;
}

//=========================================================================//
/** Auto-test server operation __trc__GetServiceCapabilities */
int __trc__GetServiceCapabilities(struct soap *soap, struct _trc__GetServiceCapabilities *trc__GetServiceCapabilities, struct _trc__GetServiceCapabilitiesResponse *trc__GetServiceCapabilitiesResponse)
{	
	/* Return incomplete response with default data values */
	INFO(stderr);

	trc__GetServiceCapabilitiesResponse->Capabilities = (struct trc__Capabilities *)soap_malloc(soap, sizeof(struct trc__Capabilities));
	get_recordservice_cap(soap, trc__GetServiceCapabilitiesResponse->Capabilities);

	return SOAP_OK;
}


/** Auto-test server operation __trc__CreateRecording */
int __trc__CreateRecording(struct soap *soap, struct _trc__CreateRecording *trc__CreateRecording, struct _trc__CreateRecordingResponse *trc__CreateRecordingResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __trc__DeleteRecording */
int __trc__DeleteRecording(struct soap *soap, struct _trc__DeleteRecording *trc__DeleteRecording, struct _trc__DeleteRecordingResponse *trc__DeleteRecordingResponse)
{	
	return SOAP_OK;
}


/** Auto-test server operation __trc__GetRecordings */
int __trc__GetRecordings(struct soap *soap, struct _trc__GetRecordings *trc__GetRecordings, struct _trc__GetRecordingsResponse *trc__GetRecordingsResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __trc__SetRecordingConfiguration */
int __trc__SetRecordingConfiguration(struct soap *soap, struct _trc__SetRecordingConfiguration *trc__SetRecordingConfiguration, struct _trc__SetRecordingConfigurationResponse *trc__SetRecordingConfigurationResponse)
{	
	return SOAP_OK;
}


/** Auto-test server operation __trc__GetRecordingConfiguration */
int __trc__GetRecordingConfiguration(struct soap *soap, struct _trc__GetRecordingConfiguration *trc__GetRecordingConfiguration, struct _trc__GetRecordingConfigurationResponse *trc__GetRecordingConfigurationResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __trc__CreateTrack */
int __trc__CreateTrack(struct soap *soap, struct _trc__CreateTrack *trc__CreateTrack, struct _trc__CreateTrackResponse *trc__CreateTrackResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __trc__DeleteTrack */
int __trc__DeleteTrack(struct soap *soap, struct _trc__DeleteTrack *trc__DeleteTrack, struct _trc__DeleteTrackResponse *trc__DeleteTrackResponse)
{	
	return SOAP_OK;
}


/** Auto-test server operation __trc__GetTrackConfiguration */
int __trc__GetTrackConfiguration(struct soap *soap, struct _trc__GetTrackConfiguration *trc__GetTrackConfiguration, struct _trc__GetTrackConfigurationResponse *trc__GetTrackConfigurationResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __trc__SetTrackConfiguration */
int __trc__SetTrackConfiguration(struct soap *soap, struct _trc__SetTrackConfiguration *trc__SetTrackConfiguration, struct _trc__SetTrackConfigurationResponse *trc__SetTrackConfigurationResponse)
{	
	return SOAP_OK;
}


/** Auto-test server operation __trc__CreateRecordingJob */
int __trc__CreateRecordingJob(struct soap *soap, struct _trc__CreateRecordingJob *trc__CreateRecordingJob, struct _trc__CreateRecordingJobResponse *trc__CreateRecordingJobResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __trc__DeleteRecordingJob */
int __trc__DeleteRecordingJob(struct soap *soap, struct _trc__DeleteRecordingJob *trc__DeleteRecordingJob, struct _trc__DeleteRecordingJobResponse *trc__DeleteRecordingJobResponse)
{	
	return SOAP_OK;
}


/** Auto-test server operation __trc__GetRecordingJobs */
int __trc__GetRecordingJobs(struct soap *soap, struct _trc__GetRecordingJobs *trc__GetRecordingJobs, struct _trc__GetRecordingJobsResponse *trc__GetRecordingJobsResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __trc__SetRecordingJobConfiguration */
int __trc__SetRecordingJobConfiguration(struct soap *soap, struct _trc__SetRecordingJobConfiguration *trc__SetRecordingJobConfiguration, struct _trc__SetRecordingJobConfigurationResponse *trc__SetRecordingJobConfigurationResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __trc__GetRecordingJobConfiguration */
int __trc__GetRecordingJobConfiguration(struct soap *soap, struct _trc__GetRecordingJobConfiguration *trc__GetRecordingJobConfiguration, struct _trc__GetRecordingJobConfigurationResponse *trc__GetRecordingJobConfigurationResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __trc__SetRecordingJobMode */
int __trc__SetRecordingJobMode(struct soap *soap, struct _trc__SetRecordingJobMode *trc__SetRecordingJobMode, struct _trc__SetRecordingJobModeResponse *trc__SetRecordingJobModeResponse)
{	
	return SOAP_OK;
}


/** Auto-test server operation __trc__GetRecordingJobState */
int __trc__GetRecordingJobState(struct soap *soap, struct _trc__GetRecordingJobState *trc__GetRecordingJobState, struct _trc__GetRecordingJobStateResponse *trc__GetRecordingJobStateResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __trp__GetServiceCapabilities */
int __trp__GetServiceCapabilities(struct soap *soap, struct _trp__GetServiceCapabilities *trp__GetServiceCapabilities, struct _trp__GetServiceCapabilitiesResponse *trp__GetServiceCapabilitiesResponse)
{	
	/* Return incomplete response with default data values */
	INFO(stderr);

	trp__GetServiceCapabilitiesResponse->Capabilities = (struct trp__Capabilities *)soap_malloc(soap, sizeof(struct trp__Capabilities));
	get_replayservice_cap(soap, trp__GetServiceCapabilitiesResponse->Capabilities);

	return SOAP_OK;
}


/** Auto-test server operation __trp__GetReplayUri */
int __trp__GetReplayUri(struct soap *soap, struct _trp__GetReplayUri *trp__GetReplayUri, struct _trp__GetReplayUriResponse *trp__GetReplayUriResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __trp__GetReplayConfiguration */
int __trp__GetReplayConfiguration(struct soap *soap, struct _trp__GetReplayConfiguration *trp__GetReplayConfiguration, struct _trp__GetReplayConfigurationResponse *trp__GetReplayConfigurationResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __trp__SetReplayConfiguration */
int __trp__SetReplayConfiguration(struct soap *soap, struct _trp__SetReplayConfiguration *trp__SetReplayConfiguration, struct _trp__SetReplayConfigurationResponse *trp__SetReplayConfigurationResponse)
{	
	return SOAP_OK;
}


/** Auto-test server operation __tse__GetServiceCapabilities */
int __tse__GetServiceCapabilities(struct soap *soap, struct _tse__GetServiceCapabilities *tse__GetServiceCapabilities, struct _tse__GetServiceCapabilitiesResponse *tse__GetServiceCapabilitiesResponse)
{	
	/* Return incomplete response with default data values */
	INFO(stderr);

	tse__GetServiceCapabilitiesResponse->Capabilities = (struct tse__Capabilities *)soap_malloc(soap, sizeof(struct tse__Capabilities));
	get_searchservice_cap(soap, tse__GetServiceCapabilitiesResponse->Capabilities);

	return SOAP_OK;
}


/** Auto-test server operation __tse__GetRecordingSummary */
int __tse__GetRecordingSummary(struct soap *soap, struct _tse__GetRecordingSummary *tse__GetRecordingSummary, struct _tse__GetRecordingSummaryResponse *tse__GetRecordingSummaryResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __tse__GetRecordingInformation */
int __tse__GetRecordingInformation(struct soap *soap, struct _tse__GetRecordingInformation *tse__GetRecordingInformation, struct _tse__GetRecordingInformationResponse *tse__GetRecordingInformationResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __tse__GetMediaAttributes */
int __tse__GetMediaAttributes(struct soap *soap, struct _tse__GetMediaAttributes *tse__GetMediaAttributes, struct _tse__GetMediaAttributesResponse *tse__GetMediaAttributesResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __tse__FindRecordings */
int __tse__FindRecordings(struct soap *soap, struct _tse__FindRecordings *tse__FindRecordings, struct _tse__FindRecordingsResponse *tse__FindRecordingsResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __tse__GetRecordingSearchResults */
int __tse__GetRecordingSearchResults(struct soap *soap, struct _tse__GetRecordingSearchResults *tse__GetRecordingSearchResults, struct _tse__GetRecordingSearchResultsResponse *tse__GetRecordingSearchResultsResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __tse__FindEvents */
int __tse__FindEvents(struct soap *soap, struct _tse__FindEvents *tse__FindEvents, struct _tse__FindEventsResponse *tse__FindEventsResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __tse__GetEventSearchResults */
int __tse__GetEventSearchResults(struct soap *soap, struct _tse__GetEventSearchResults *tse__GetEventSearchResults, struct _tse__GetEventSearchResultsResponse *tse__GetEventSearchResultsResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __tse__FindPTZPosition */
int __tse__FindPTZPosition(struct soap *soap, struct _tse__FindPTZPosition *tse__FindPTZPosition, struct _tse__FindPTZPositionResponse *tse__FindPTZPositionResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __tse__GetPTZPositionSearchResults */
int __tse__GetPTZPositionSearchResults(struct soap *soap, struct _tse__GetPTZPositionSearchResults *tse__GetPTZPositionSearchResults, struct _tse__GetPTZPositionSearchResultsResponse *tse__GetPTZPositionSearchResultsResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __tse__GetSearchState */
int __tse__GetSearchState(struct soap *soap, struct _tse__GetSearchState *tse__GetSearchState, struct _tse__GetSearchStateResponse *tse__GetSearchStateResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __tse__EndSearch */
int __tse__EndSearch(struct soap *soap, struct _tse__EndSearch *tse__EndSearch, struct _tse__EndSearchResponse *tse__EndSearchResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __tse__FindMetadata */
int __tse__FindMetadata(struct soap *soap, struct _tse__FindMetadata *tse__FindMetadata, struct _tse__FindMetadataResponse *tse__FindMetadataResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}


/** Auto-test server operation __tse__GetMetadataSearchResults */
int __tse__GetMetadataSearchResults(struct soap *soap, struct _tse__GetMetadataSearchResults *tse__GetMetadataSearchResults, struct _tse__GetMetadataSearchResultsResponse *tse__GetMetadataSearchResultsResponse)
{	
	/* Return incomplete response with default data values */
	return SOAP_OK;
}
